package  com.pcbly.web.business.news;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.news.NewsTagBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface NewsTagService extends BaseService<NewsTagBean> {

	NewsTagBean getNewsTagBeanById(String id) throws Exception;
	
	void removeNewsTagBeanById(String id) throws Exception;
	
	void removeNewsTagBeanByIds(String ids) throws Exception;
	
	NewsTagBean saveNewsTagBean(NewsTagBean news) throws Exception;
	
	NewsTagBean updateNewsTagBean(NewsTagBean news) throws Exception;
	
	Page<NewsTagBean>  findNewsTagBeanByCond(NewsTagBean bean,
			Page<NewsTagBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveNewsTagBeanExt(String sql) throws Exception;

	String findNewsTagBeanExtCreate(String tableName) throws Exception;

	String findNewsTagBeanExtEdit(String tableName, String id)
			throws Exception;

	String findNewsTagBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasNewsTagBeanExtData(String tableName, String id)
			throws Exception;
}